using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Rss;
using System.Collections.Generic;

namespace SearchWorkflows
{
	public sealed partial class SearchWebAndLiveExpo: SequentialWorkflowActivity
	{
        public String keywords = default(System.String);

        public String address1 = default(System.String);
        public String address2 = default(System.String);
        public String city = default(System.String);
        public String state = default(System.String);
        public String postalCode = default(System.String);

        public Double latitude = 0.00;
        public Double longitude = 0.00;
        public string language = "eng-US";
        public int pageNumber = default(System.Int32);
        public int pageSize = default(System.Int32);

        public string Country = "US";


        public RssFeed searchResultFeed;
        public RssFeed liveExpoResultFeed;

        public RssFeed resultFeed = new RssFeed();
        public String resultFeedXml = default(System.String);

        public SearchWebAndLiveExpo()
		{
			InitializeComponent();
		}

        private void MergeFeeds1_Execute(object sender)
        {
            Rss.Activities.MergeFeeds mergeFeeds = (Rss.Activities.MergeFeeds)sender;
            mergeFeeds.FeedsToMerge = new List<RssFeed>();

            if (searchResultFeed != null) mergeFeeds.FeedsToMerge.Add(searchResultFeed);
            if (liveExpoResultFeed != null) mergeFeeds.FeedsToMerge.Add(liveExpoResultFeed);

            mergeFeeds1 = mergeFeeds;
        }

        private void Prepare_Output(object sender, EventArgs e)
        {
            resultFeedXml = resultFeed.ToXml().OuterXml;
        }



       
	}

}
